package com.jhinwins.equipmenteb.equipmentebserver.service;

import com.alibaba.fastjson.JSONObject;
import com.jhinwins.equipmenteb.equipmentebserver.entity.UserBean;

import javax.servlet.http.HttpSession;

public interface UserService {

    /**
     * 注册
     */
    JSONObject regist(UserBean userBean);

    /**
     * 登陆
     */
    JSONObject login(String username, String password);

    /**
     * 验证账号是否存在,如果不存在则返回null
     */
    UserBean userExistence(String username);

}
